class Image < ActiveRecord::Base
  set_table_name "Image"
  set_primary_key "id"
  
  belongs_to :page
  
  has_attachment :content_type => :image, 
                 :storage => :file_system, 
                 #:max_size => 500.kilobytes,
                 :resize_to => '300x200>',
                 :thumbnails => { :thumb => '100x100>' }

  validates_as_attachment

end